home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / linux / tools / amiga / gzip-1.1.2.lha / gzip-1.1.2 / msdos / Makefile.bor < prev    next >
Encoding:
Makefile  |  1993-04-19  |  2.8 KB  |  113 lines

  1. # Makefile for gzip
  2. # Borland (Turbo) C++.
  3. # Warning: this file is not suitable for Turbo C 2.0. In this case, read
  4. # then invoke the file doturboc.bat.
  5.  
  6. # To use, do "make -fmakefile.bor"
  7.  
  8. # WARNING: the small model is not supported. The compact model is used
  9. # here. If you want to use the large model, add -D__LARGE__ to ASFLAGS
  10. # Add -DSMALL_MEM to CFLAGS if you wish to reduce the memory
  11. # requirements. Add -DNO_ASM to CFLAGS and remove match.obj from OBJA if
  12. # you do not have tasm.
  13.  
  14. # ------------- Turbo C++, Borland C++ -------------
  15. MODEL=-mc
  16. #CFLAGS=-w -w-eff -w-def -w-sig -w-cln -a -d -G -O -Z $(MODEL)
  17. CFLAGS=-O2 -Z $(MODEL)
  18. CC=bcc
  19. LD=bcc
  20. #   replace bcc with tcc for Turbo C++ 1.0
  21. LDFLAGS=$(MODEL)
  22. AS=tasm
  23. ASFLAGS=-ml -t -DDYN_ALLOC -DSS_NEQ_DS
  24. LIB = c:\bcc\lib
  25.  
  26. # ------------- Common declarations:
  27. STRIP=rem
  28. #    If you don't have lzexe, get it (by ftp on wuarchive.wustl.edu
  29. #    in /mirrors/msdos/filutl/lzexe91e.zip). Then define:
  30. #STRIP=lzexe
  31. #    Or if you've registered PKLITE, then define:
  32. #STRIP=pklite
  33. #    This makes a big difference in .exe size (and possibly load time)
  34.  
  35. O=.obj
  36. OBJA=match$(O) tailor$(O) $(LIB)\wildargs.obj
  37. ALLOCA=alloca$(O)
  38.  
  39. # ------------- Used by install rule
  40. # set BIN to the directory you want to install the executables to
  41. BIN = c:\bin
  42.  
  43. # variables
  44. OBJ1 = gzip$(O) zip$(O) deflate$(O) trees$(O) bits$(O) unzip$(O) inflate$(O) \
  45.        util$(O)
  46. OBJ2 = crypt$(O) lzw$(O) unlzw$(O) unpack$(O) getopt$(O) $(OBJA) $(ALLOCA)
  47.  
  48. all: gzip.exe
  49.  
  50. gzip.obj: gzip.c gzip.h tailor.h crypt.h revision.h lzw.h
  51.     $(CC) -c $(CFLAGS) $*.c
  52.  
  53. zip.obj: zip.c gzip.h tailor.h crypt.h
  54.     $(CC) -c $(CFLAGS) $*.c
  55.  
  56. deflate.obj: deflate.c gzip.h tailor.h
  57.     $(CC) -c $(CFLAGS) $*.c
  58.  
  59. trees.obj: trees.c gzip.h tailor.h
  60.     $(CC) -c $(CFLAGS) $*.c
  61.  
  62. bits.obj: bits.c gzip.h tailor.h crypt.h
  63.     $(CC) -c $(CFLAGS) $*.c
  64.  
  65. unzip.obj: unzip.c gzip.h tailor.h crypt.h
  66.     $(CC) -c $(CFLAGS) $*.c
  67.  
  68. inflate.obj: inflate.c gzip.h tailor.h
  69.     $(CC) -c $(CFLAGS) $*.c
  70.  
  71. util.obj: util.c gzip.h tailor.h crypt.h
  72.     $(CC) -c $(CFLAGS) $*.c
  73.  
  74. crypt.obj: crypt.c gzip.h tailor.h crypt.h
  75.     $(CC) -c $(CFLAGS) $*.c
  76.  
  77. lzw.obj: lzw.c gzip.h tailor.h
  78.     $(CC) -c $(CFLAGS) $*.c
  79.  
  80. unlzw.obj: unlzw.c gzip.h tailor.h lzw.h
  81.     $(CC) -c $(CFLAGS) $*.c
  82.  
  83. unpack.obj: unpack.c gzip.h tailor.h
  84.     $(CC) -c $(CFLAGS) $*.c
  85.  
  86. tailor.obj: tailor.c gzip.h tailor.h
  87.     $(CC) -c $(CFLAGS) $*.c
  88.  
  89. getopt.obj: getopt.c getopt.h
  90.     $(CC) -c $(CFLAGS) $*.c
  91.  
  92. alloca.obj: alloca.c
  93.      $(CC) -c $(CFLAGS) $*.c
  94.  
  95. match.obj:    match.asm
  96.     $(AS) $(ASFLAGS) match;
  97.  
  98. # we must cut the command line to fit in the MS/DOS 128 byte limit:
  99. gzip.exe: $(OBJ1) $(OBJ2)
  100.     echo $(OBJ1) > gzip.rsp
  101.     echo $(OBJ2) >> gzip.rsp
  102.     $(LD) $(LDFLAGS) @gzip.rsp
  103.     del gzip.rsp
  104.     $(STRIP) gzip.exe
  105.  
  106. install: gzip.exe
  107.     copy /b gzip.exe $(BIN)
  108.     copy /b gzip.exe $(BIN)\gunzip.exe
  109.  
  110. clean:
  111.     del *.obj
  112.     del *.exe
  113.